//管理类型接口的出口文件
//注意：所有接口命名都是以 'I' 开头

/**
 * list: [
 *   listItem: {
 *     id: new Date().getTime -> number数值类型,
 *     content: string字符串类型,
 *     status: FINISHED | DOING | WILLDO -> 枚举类型
 *   } -> Interface类型
 * ] -> ITodo类型
 */

//定义每一项listItem
interface ITodo{
  id: number,
  content: string,
  status:TODO_STATUS
}

//定义list数组
interface IState{
  list: ITodo[]
}

//声明枚举:一般大写
enum TODO_STATUS{
  //待办
  WILLDO = 'willdo',
  DOING = 'doing',
  FINISHED = 'finished'
}

export {
  ITodo,
  IState,
  TODO_STATUS
}